package com.zhongba01.eurekaclient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * 中巴价值投资研习社
 *
 * @author : tangjianhua
 * @date : 2018/7/24.
 */

@RestController
public class HelloController {

    @Value("${server.port}")
    String port;

    @GetMapping("/")
    public String home() {
        return "Hello world from port " + port + ", timestamp: " + LocalDateTime.now();
    }
}
